package com.vogue.supplymall.account.shiro.token;

import org.apache.shiro.authc.UsernamePasswordToken;

import com.vogue.supplymall.account.shiro.realm.AuthRealm;

public class MallUsernamePasswordToken extends UsernamePasswordToken {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6430977300381772726L;
	
	public MallUsernamePasswordToken(final String username, final String password) {
		super(username, password);
	}
	
	public MallUsernamePasswordToken(final String username, final String password, final boolean rememberMe) {
		super(username, password, rememberMe);
	}
	
	public MallUsernamePasswordToken(final String username, final String password, final boolean rememberMe, final String host) {
		super(username, password, rememberMe, host);
	}
	@Override
	public Object getPrincipal() {
		// TODO Auto-generated method stub		
		return AuthRealm.getCacheKey(this.getUsername());//DbNameThread.get()+"_"+this.getUsername();
	}
}
